import request from '../../utils/Request'
import PageUtils from '../../utils/PageUtils'


export const saveDictItem = data => {
  return request({
    method: 'post',
    url: '/api/manage/dict/item/save',
    data: data
  })
}
export const createDictItem = data => {
  return request({
    method: 'post',
    url: '/api/manage/dict/item/create',
    data: data
  })
}
export const updateDictItem = data => {
  return request({
    method: 'post',
    url: '/api/manage/dict/item/update',
    data: data
  })
}
export const updateDictIterStatus = (dictItemId, status) => {
  return request({
    method: 'get',
    url: '/api/manage/dict/item/' + dictItemId + '/status/' + status,
    params: {}
  })
}

export const deleteDictItem = bId => {
  return request({
    method: 'get',
    url: '/api/manage/dict/item/delete/' + bId,
    params: {}
  })
}

export const listDictItem = () => {
  return request({
    method: 'get',
    url: '/api/manage/dict/item/list',
    params: {}
  })
}



